﻿using System;
using System.Collections.Generic;

namespace com.foxmail.wyyuan1991.Assignment
{
    public interface ITimeTable
    {
        HashSet<ITrain> TrainSet { get; set; }
    }
    public interface ITrain
    {
        string ID { get; set; }
        List<ITrainStop> StopStationList { get; set; }
        List<Station> StationList { get; set; }
        int Capacity { get; set; }
    }

    public interface ISection
    {
        Station StartSta { get; set; }
        Station EndSta { get; set; }
    }

    public interface ITrainStop
    {
        DateTime ArrTime { get; set; }
        DateTime DepTime { get; set; }
        Station StopSta { get; set; }
    }
    public class Station
    {
        string Name { get; set; }
    }

    public interface IPassengerFlowCollection
    {
        HashSet<IPassengerFlow> PFSet { get; set; }
    }
    public interface IPassengerFlow
    {
        Station FromSta { get; set; }
        Station ToSta { get; set; }
        int num { get; set; }
    }
}
